REFindNoCase(reg_expression, string [, start ] 
   [, returnsubexpressions ] )


Returns the position and length of the first occurrence of a regular expression in a string if the returnsubexpressions parameter is set to True. See the description of the returnsubexpressions parameter and the "Usage" section for details.

See also Find, FindNoCase, REReplace, and REReplaceNoCase.

reg_expression

Regular expression used for search. This regular expression can include POSIX- specified character classes (for example, [[:alpha:]], [[:digit:]], [[:upper:]], and [[:lower:]]).

string

String being searched.

start

Optional. Starting position for the search. Default is 1.

returnsubexpressions

Optional. A Boolean value indicating whether a substring is returned. If you set this parameter to TRUE, the function returns a CFML structure composed of two single-element arrays containing the position and length of the first substring that matches the criteria of the search. You can retrieve the position and length of the matching subexpression by using the keys "pos" and "len." If there are no occurrences of the regular expression, the "pos" and the "len" arrays each contain one element that has a value of zero. If you set this parameter to FALSE, a scalar value is returned indicating the position of the first occurrence of a regular expression. The default value of this parameter is FALSE.